package cn.fboost.mtos.mapper;

import cn.fboost.mtos.entity.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAddressMapper {
    List<UserAddress> listByUserId(int userID);
    UserAddress getById(int id);
    int add(UserAddress address);
    int update(UserAddress address);
    int deleteInUserId(@Param("userId") int userId, @Param("id") int id);
    int cleanDefault(int userId);
}
